#!/bin/sh

LAB=lab2
ROOT_DIR=/home/tuchunxu/WorkSpace/School/CompilationPrinciple/lab/code
EXEC=${ROOT_DIR}/bin/LexicalAnalysis
CASE_DIR=${ROOT_DIR}/test/${LAB}/case
RES_DIR=${ROOT_DIR}/test/${LAB}/res

for file in $(ls $CASE_DIR)
do
  in_file=${CASE_DIR}/${file}
  out_file=${RES_DIR}/${file}.out
  ${EXEC} -i ${in_file} -o ${out_file}
done
